home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 41.zip / BS1 part 41 / Lattice C v5.02 d4.adf / examples / popsup.a < prev    next >
Text File  |  1988-11-07  |  723b  |  25 lines

  1. *************************************************************************
  2. *   HandlerInterface()
  3. *
  4. *   This code is needed to convert the calling sequence performed by
  5. *   the input.task for the input stream management into something
  6. *   that a C program can understand.
  7. *
  8. *   This routine expects a pointer to an InputEvent in A0, a pointer
  9. *   to a data area in A1.  These values are transferred to the stack
  10. *   in the order that a C program would need to find them.  Since the
  11. *   actual handler is written in C, this works out fine. 
  12. *
  13. *   Author: Rob Peck, 12/1/85
  14. *
  15.     xdef    _HandlerInterface
  16.     xref    _myhandler
  17.         section "text",code
  18. _HandlerInterface:
  19.     movem.L    A0/A1,-(A7)
  20.     jsr    _myhandler
  21.     addq.L    #8,A7
  22.     rts
  23.  
  24.     END
  25.